import Vue from "vue";
import VueRouter from "vue-router";
import Login from '../page/Login'
import Home from '../page/Home'


Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/login",
  },
  {
    path: "/home",
    component: () =>import(/* webpackChunkName: "home" */"../page/Home"),
  },
  {
    path: "/encyclopedia",
    component: () =>import(/* webpackChunkName: "home" */"../page/encyclopedia"),
  },
  {
    path: "/knowledge",
    component: () =>import(/* webpackChunkName: "home" */"../page/knowledge"),
  },
  {
    path: "/shop",
    component: () =>import(/* webpackChunkName: "home" */"../page/shop"),
  },
  {
    path: "/login",
    component: () =>import(/* webpackChunkName: "home" */"../page/Login"),
  },
  {
    path: "/search",
    component: () =>import(/* webpackChunkName: "home" */"../page/search"),
  },
  {
    path: "/illness",
    component: () =>import(/* webpackChunkName: "home" */"../page/illness"),
  },
  {
    path: "/circle",
    component: () =>import(/* webpackChunkName: "home" */"../page/circle"),
  },
  {
    path: "/melancholy",
    component: () =>import(/* webpackChunkName: "home" */"../page/melancholy"),
  },
  {
    path: "/news",
    component: () =>import(/* webpackChunkName: "home" */"../page/news"),
  },
  {
    path: "/mine",
    component: () =>import(/* webpackChunkName: "home" */"../page/mine"),
  },
  {
    path:"*",
    component: () =>import(/* webpackChunkName: "404 */"../page/Page404"),
  }

];



const router = new VueRouter({
  routes,
});

export default router;
